{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <form class="mb-20" method="get" action="{:\\think\\Url::build($Request.action)}">
        <div class="select-box" style="width:20%;">
            <select name="group" class="select" onchange='$("form.mb-20").submit()'>
                <option value="">全部</option>
                <option value="0">不分组</option>
                <option value="1">基本</option>
                <option value="2">内容</option>
                <option value="3">用户</option>
                <option value="4">系统</option>
            </select>
        </div>
        <input type="text" class="input-text" style="width:20%;" placeholder="配置标识" name="name" value="{$Request.param.name}" >
        <input type="text" class="input-text" style="width:20%;" placeholder="配置标题" name="title" value="{$Request.param.title}" >
        <button type="submit" class="btn btn-success"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    </form>
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
            {tp:menu menu="add,forbid,resume" /}
        </span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count ?? '0'}</strong> 条
        </span>
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            <th width="25"><input type="checkbox"></th>
            <th width="">标识</th>
            <th width="">标题</th>
            <th width="">分组</th>
            <th width="">类型</th>
            <th width="" style='text-align: left;'>说明</th>
            <th width="">状态</th>
            <th width="70">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            <td><input type="checkbox" name="id[]" value="{$vo.id}"></td>
            <td>{$vo.name|high_light=$Request.param.name}</td>
            <td>{$vo.title|high_light=$Request.param.title}</td>
            <td>{$vo.group}</td>
            <td>{$vo.type}</td>
            <td style='text-align: left;'>{$vo.remark}</td>
            <td>{$vo.status|get_status}</td>
            <td class="f-14">
                {$vo.status|show_status=$vo.id}
                {tp:menu menu='sedit' /}
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page ?? ''}</div>
</div>
{/block}
{block name="script"}
<script>
    $(function () {
        $("[name='type']").find("[value='{$Request.param.type}']").attr("selected", true);
        $("[name='group']").find("[value='{$Request.param.group}']").attr("selected", true);
    })
</script>
{/block}
